-- GENERATED SPELL FOR [Xavathras] --


function spell0_9454(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_9454', 638, 1)
end

function spell1_9454(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9454', 15000, 1)
end

function Sorts_9454(pUnit, Event)
local choix_sorts_9454 = math.random(0, 1)
if choix_sorts_9454 == 0 then
pUnit:RegisterEvent('spell0_9454', 1, 1)
end
if choix_sorts_9454 == 1 then
pUnit:RegisterEvent('spell1_9454', 1, 1)
end
end

function mob9454_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9454', math.random(1500, 3000), 1)
end

function mob9454_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9454_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9454_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9454, 1, 'mob9454_Action')
RegisterUnitEvent(9454, 2, 'mob9454_Leave')
RegisterUnitEvent(9454, 3, 'mob9454_Kill')
RegisterUnitEvent(9454, 4, 'mob9454_Die')
